libelf: type adjustments
authorJan Beulich <jbeulich@suse.com>
Wed, 7 Dec 2016 12:53:28 +0000 (13:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Dec 2016 12:53:28 +0000 (13:53 +0100)
commit397f64d126cefb1a93e8fc469c0431e9256226cf
treec1f58446d414f2e50236379b94a0f0c04c948fd9
parentd4c856a57a55f888369c8933d93c6da04cd8036c
libelf: type adjustments

Don't needlessly use uint64_t when unsigned suffices.

Also don't open code elf_phdr_count() and replace a redundant call to
elf_shdr_count().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/common/libelf/libelf-loader.c
xen/common/libelf/libelf-tools.c